import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations.js'
import actions from './actions.js'
import getters from './getters.js'
import Cookies from 'js-cookie'
Vue.use(Vuex);
/* 项目全局State */
const state = {
    userId:Cookies.get("userId"),
    avatar:'',
    userName:'',
    banner:undefined
}
/* Store实例 */
export default new Vuex.Store({
    state,
    actions,
    mutations,
    getters
})
